-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt 2 Make class variables immutable #188
Attempt 2 Make class variables immutable #188
Conversation
Codecov Report
@@ Coverage Diff @@
## main #188 +/- ##
=======================================
Coverage 98.63% 98.63%
=======================================
Files 55 55
Lines 2047 2047
=======================================
Hits 2019 2019
Misses 28 28
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this update! LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than one comment on sets, LGTM. But if this should be the general approach now, we should change the converter examples too in readthedocs.
@@ -34,7 +34,7 @@ def create_magunits(): | |||
else: | |||
magunits.append(magunit) | |||
|
|||
return magunits | |||
return set(magunits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For immutability shouldn't frozenset()
be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Attempt 2 at #187